package com.tuanzi.loan.web.lazy.galaxycard;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.galaxycard.GalaxyCardOrderService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardOrderRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardOrderResponse;

public class GalaxyCardOrderLazyDataModel extends BaseLazyDataModel<GalaxyCardOrderRequest, GalaxyCardOrderResponse> {

	
	private static final long serialVersionUID = -113257093972080856L;
	
	private GalaxyCardOrderService galaxyCardOrderService = SpringContextHolder.getBean(GalaxyCardOrderService.class);

	public GalaxyCardOrderLazyDataModel(GalaxyCardOrderRequest searchRequest) {
		super(searchRequest);
	}

	@Override
	protected Page<GalaxyCardOrderResponse> doLoad(
			PageSearcher<GalaxyCardOrderRequest> pageSearcher) {
		return galaxyCardOrderService.list(pageSearcher);
	}

}
